package com.ruoyi.commerce.domain.vo;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.convert.ExcelDictConvert;
import lombok.Data;
import java.util.Date;



/**
 * 订单视图对象 commerce_orders
 *
 * @author ruoyi
 * @date 2024-01-15
 */
@Data
@ExcelIgnoreUnannotated
public class CommerceOrdersVo {

    private static final long serialVersionUID = 1L;

    /**
     * 订单号
     */
    @ExcelProperty(value = "订单号")
    private Long id;

    /**
     * 采购单号
     */
    @ExcelProperty(value = "采购单号")
    private Long purchaseId;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 用户工号
     */
    @ExcelProperty(value = "用户工号")
    private String userName;

    /**
     * 用户姓名
     */
    @ExcelProperty(value = "用户姓名")
    private String nickName;

    /**
     * 订单日期
     */
    @ExcelProperty(value = "订单日期")
    private Date orderDate;

    /**
     * 商品id
     */
    @ExcelProperty(value = "商品id")
    private Long productId;

    /**
     * 商品名称
     */
    @ExcelProperty(value = "商品名称")
    private String productName;

    /**
     * 商品数量
     */
    @ExcelProperty(value = "商品数量")
    private Integer productQuantity;

    /**
     * 总积分
     */
    @ExcelProperty(value = "总积分")
    private BigDecimal totalPrice;

    /**
     * 状态
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "commerce_orders_status")
    private String status;


}
